daemonize yes
pidfile /var/run/redis/redis-<%= name %>.pid
port <%= port %>
timeout 300
loglevel verbose
logfile stdout
databases 4
<% if redis_persistent %>
save 900 1
save 300 10
save 60 10000
<% end %>
rdbcompression yes
dbfilename dump.rdb
dir /var/redis/<%= name %>/
<% unless redis_slaveof_ip.empty? %>
    slaveof <%= redis_slaveof_ip %> <%= port %>
<% end %>
maxmemory <%= size %>
maxmemory-policy <%= memory_policy %>
appendonly no
appendfsync everysec
vm-enabled no
vm-swap-file /tmp/redis-<%= name %>.swap
vm-max-memory 0
vm-page-size 32
vm-pages 134217728
vm-max-threads 4
hash-max-zipmap-entries 64
hash-max-zipmap-value 512
activerehashing yes
